import {request} from '@/common/js/request.js'

// 获得用户的基本信息
export function getUserInfo(data) {
  return request({
    url: '/app-api/member/user/get',
    method: 'get',
	data
  })
}

// 修改用户名称
export function updateNickname(nickname) {
	return request({
		url: '/app-api/member/user/update-nickname',
		method: 'put',
		header: {
			"Content-Type": "application/x-www-form-urlencoded"
		},
		data: {
			nickname
		}
	})
}
// 修改密码
export function updatePassword(data) {
	return request({
		url: '/app-api/member/auth/update-password',
		method: 'post',
		header: {
			"Content-Type": "application/json"
		},
		data
	})
}